<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>ETC卡申请管理</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
 </head>
 <body style="overflow-y: auto" scroll="no">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="mallEtcApplyController.do?save">
			<input id="id" name="id" type="hidden" value="${mallEtcApplyPage.id }">
			<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							申请人:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="applyuserid" name="applyuserid" 
							   value="${mallEtcApplyPage.mallUser.fullname}" datatype="n">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							申请单号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="applyno" name="applyno" ignore="ignore"
							   value="${mallEtcApplyPage.applyno}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							车牌号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="carno" name="carno" 
							   value="${mallEtcApplyPage.carno}" datatype="*">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							店铺:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="shopid" name="shopid" 
							   value="${mallEtcApplyPage.shop.shopname}" datatype="n">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							行驶证:
						</label>
					</td>
					<td class="value">
						<img src="${mallEtcApplyPage.vehiclelicenseimg}" width="100px" height="100px">
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							身份证正面:
						</label>
					</td>
					<td class="value">
						<img src="${mallEtcApplyPage.idCardNoHeadsImg}" width="100px" height="100px">
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							身份证反面:
						</label>
					</td>
					<td class="value">
						<img src="${mallEtcApplyPage.idCardNoTailsImg}" width="100px" height="100px">
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							车辆照片:
						</label>
					</td>
					<td class="value">
						<img src="${mallEtcApplyPage.vehicleimg}" width="100px" height="100px">
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							申请时间:
						</label>
					</td>
					<td class="value">
						<input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  style="width: 150px" id="applytime" name="applytime" 
							     value="<fmt:formatDate value='${mallEtcApplyPage.applytime}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>" datatype="*">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							状态<%--,已申请未支付_0,已支付未受理_1,待发卡_2,待收货_3,已收货_4,商户审核未通过_10,已取消_11--%>
						</label>
					</td>
					<td class="value">
						<c:if test="${mallEtcApplyPage.state == 0}">已申请未支付</c:if>
						<c:if test="${mallEtcApplyPage.state == 1}">已支付未受理</c:if>
						<c:if test="${mallEtcApplyPage.state == 2}">待发卡</c:if>
						<c:if test="${mallEtcApplyPage.state == 3}">待收货</c:if>
						<c:if test="${mallEtcApplyPage.state == 4}">已收货</c:if>
						<c:if test="${mallEtcApplyPage.state == 10}">商户审核未通过</c:if>
						<c:if test="${mallEtcApplyPage.state == 11}">已取消</c:if>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							领卡方式<%--，0现场领卡，1邮寄:--%>
						</label>
					</td>
					<td class="value">
						<c:if test="${mallEtcApplyPage.receivetype == 0}">现场领卡</c:if>
						<c:if test="${mallEtcApplyPage.receivetype == 1}">邮寄</c:if>
					</td>
				</tr>
				<%--领卡方式为邮寄显示领卡方式--%>
				<c:if test="${mallEtcApplyPage.receivetype == 1}">
					<tr>
						<td align="right">
							<label class="Validform_label">
								联系人
							</label>
						</td>
						<td class="value">
							${mailingAddress.contactname}
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								联系电话
							</label>
						</td>
						<td class="value">
							${mailingAddress.mobilephone}
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								收获地址
							</label>
						</td>
						<td class="value">
							${mailingAddress.addressName}${mailingAddress.address}
						</td>
					</tr>
				</c:if>
				<tr>
					<td align="right">
						<label class="Validform_label">
							拒绝原因:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="refectreason" name="refectreason" ignore="ignore"
							   value="${mallEtcApplyPage.refectreason}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							取消原因:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="cancelReason" name="cancelReason" ignore="ignore"
							   value="${mallEtcApplyPage.cancelreason}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							ETC卡号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="ectcardno" name="ectcardno" ignore="ignore"
							   value="${mallEtcApplyPage.ectcardno}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<%--<tr>
					<td align="right">
						<label class="Validform_label">
							首次领卡订单id:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="orderid" name="orderid" ignore="ignore"
							   value="${mallEtcApplyPage.orderid}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>--%>
			</table>
		</t:formvalid>
 </body>